﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Things.Bar;
using Things.Bar.Models;

namespace Things.Web.Bar
{
    public partial class NoticeTypeList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            NoticeTypeRepository rep = new NoticeTypeRepository();
            List<NoticeType> types = rep.FindAll();
            gridView.DataSource = types;
            gridView.DataBind();
        }

        protected void _ctlBtnAdd_Click(object sender, EventArgs e)
        {
            Response.Redirect("./AddNoticeType.aspx");
        }
    }
}